package com.sky.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 封装分页查询结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "分页结果")
public class PageResult implements Serializable {
    /** 总记录数 */
    @ApiModelProperty(value = "总记录数", required = true, example = "0")
    private long total;

    /** 当前页数据集合 */
    @ApiModelProperty(value = "当前页数据集合", required = true, example = "[]")
    private List records;
}
